package com.cskaoyan.service;

import com.cskaoyan.mapper.MarketIssueMapper;
import com.cskaoyan.model.MarketIssue;
import com.cskaoyan.model.MarketIssueExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description
 * @Author zoe ling
 * @Date 2024/6/11
 */
@Service
public class IssueServiceImpl implements IssueService {
    @Autowired
    MarketIssueMapper issueMapper;

    @Override
    public List<MarketIssue> all() {
        MarketIssueExample example = new MarketIssueExample();
        example.createCriteria().andDeletedEqualTo(false);
        example.setOrderByClause("add_time desc");
        return issueMapper.selectByExample(example);
    }
}
